{#**
*
* 功能描述（注册模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}

{#include file="header.tpl" title="注册" menuIdx=2 headImg="index" #}
<div class="block box">
    <div id="ur_here">
        当前位置: <a href=".">首页</a> <code>/</code> 用户中心 </div>
</div>

{#include file="define.tpl" scope=parent#}

<div class="usBox">
    <div class="usBox_2 clearfix">
        <div class="form_tip">梵地的会员享受每次订单10%的积分返还优惠，积分等同现金使用。</div>
        <form action="index.php?action=user.register" method="post" name="formUser" onsubmit="return checkRegister($('#type').attr('value'), $('#register_mobile').attr('value'), $('#mobile_captcha').attr('value'), $('#password1').attr('value'), $('#com_name').attr('value'), $('#com_tel').attr('value'));">
            <table width="100%"  border="0" align="left" cellpadding="5" cellspacing="3">
                <tr>
                    <td align="right" class="input_label" width="20%">类别：<span class="xin"> *</span></td>
                    <td>
                        <select name="type" id="type" onchange="changeType_c();">
                            {#foreach $g_viptypes as $k => $v#}
                                <option value="{#$k#}">{#$v#}</option>
                            {#/foreach#}
                        </select>
                        &nbsp;类别注册之后，不可更改
                    </td>
                </tr>
                <tr>
                    <td align="right" class="input_label" width="20%">手机号码：<span class="xin"> *</span></td>
                    <td>
                        <input name="mobile" type="text" id="register_mobile" onblur="checkRegisterMobile(this.value);" class="inputBg1" /><span class="xin" id="register_mobile_notice"> </span>
                    </td>
                </tr>
                <tr>
                    <td align="right" class="f9">&nbsp;</td>
                    <td align="left">
                        <table>
                            <tr>
                                <td><input type="button" value="获取短信验证码" class="button_nomarl" id="btn_get_register_mobile_captcha" onclick="getRegisterMobileCaptcha($('#register_mobile').attr('value'));" /></td>
                                <td>
                                    &nbsp;<span id="lefttime_tip" style="display:none;">已发送，1分钟后可重发短信。</span>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td></td>
                </tr>

                <tr>
                    <td align="right" class="input_label">输入短信验证码：<span class="xin"> *</span></td>
                    <td>
                        <input name="authcode" id="mobile_captcha" type="text" size="25" class="inputBg1" />
                    </td>
                </tr>		
                <tr>
                    <td align="right" class="input_label">密码：<span class="xin"> *</span></td>
                    <td>
                        <script type="text/javascript">
                            $(document).ready(function() {
                                $(".item_check").find('span').click(function() {

                                    var user_password = $("#password1").attr('value');

                                    if ($(this).hasClass('cur'))
                                    {
                                        $(this).removeClass('cur');

                                        var obj = '<input name="password" type="text" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" class="inputBg1" value="' + user_password + '" />';

                                        $("#password_box1").empty().append(obj);
                                    }
                                    else {
                                        $(this).addClass('cur');

                                        var obj = '<input name="password" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" class="inputBg1" value="' + user_password + '" />';

                                        $("#password_box1").empty().append(obj);
                                    }
                                });
                            });
                        </script>
                        <span id="password_box1">
                            <input name="password" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)" class="inputBg1" /></span>
                        </span>
                        <span class="item_check"><span class="cur"></span>隐藏字符</span><span class="xin" id="password_notice">
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td><span id="pwd_stronger_tip"></span><br /><div id="pwd_lower"></div><div id="pwd_middle"></div><div id="pwd_high"></div></td>
                </tr>
                <tr style="display:none;">
                    <td>&nbsp;</td>
                    <td><label>
                            <input name="agreement" type="checkbox" value="1" checked="checked" />
                            我已看过并接受《<a href="article.php?cat_id=-1" style="color:#995555" target="_blank">用户协议</a>》</label></td>
                </tr>
                <tr class="company" style="display: none;">
                    <td align="right" class="input_label">公司名称：<span class="xin"> *</span></td>
                    <td>
                        <input name="com_name" id="com_name" type="text" size="25" class="inputBg1" />
                    </td>
                </tr>
                <tr class="company" style="display: none;">
                    <td align="right" class="input_label">公司电话：<span class="xin"> *</span></td>
                    <td>
                        <input name="com_tel" id="com_tel" type="text" size="25" class="inputBg1" onblur="checkRegisterComTel(this.value);" />&nbsp;<span class="xin" id="f_register_com_tel_notice">3或4位区号-7位或8位电话号</span>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td align="left">
                        <input name="act" type="hidden" value="act_register" >
                        <input type="hidden" name="back_act" value="" />
                        <input name="Submit" type="submit" value="注册" class="bnt_dc_register">
                    </td>
                </tr>	
            </table>
        </form>
    </div>
</div>
{#include file="footer.tpl"#}

